<template>
    <div>
        <div> 请输入第一个数字：<el-input-number v-model="num1" /></div>
        <div> 请输入第二个数字：<el-input-number v-model="num2" /></div>
        <div>两数字相加的结果是{{ add(num1, num2) }}</div>
        <div>两数字相减的结果是{{ subtract(num1, num2) }}</div>
        <div>两数字相乘的结果是{{ multiply(num1, num2) }}</div>
        <div>两数字相除的结果是{{ divide(num1, num2) }}</div>
        <hr />
        <div>原数组是：{{ originArr }}</div>
        <!-- <div>数组反转：{{ reverseArr(originArr) }}</div> -->
    </div>
</template>

<script setup>
import { ref } from 'vue'
import {
    add, subtract, multiply, divide,
    // reverseArr
} from 'npm-test-linglinglin'

const num1 = ref(1)
const num2 = ref(1)
const originArr = [2, 4, 6, 8, 10]
</script>
